<?=view('home.common.header')?>
<?=view('home.common.nav')?>
<div class="container">
    <div class="container-fluid">
        <div class="row">
            <div class="col-xs-12 col-md-12" style="padding: 10px 0px;">
                <a href="<?=url("home/person/index")?>" class="button button-circle button-small button-highlight"><i class="fa fa-reply"></i></a>
            </div>
            <?php if($accounts && count($accounts)): ?>
            <table class="table">
                <thead>
                    <tr>
                        <th>类型</th>
                        <th>金额</th>
                        <th>时间</th>
                    </tr>
                </thead>
                <tbody>
                    <?php foreach($accounts as $val): ?>
                    <tr>
                        <td><?=$val->strStatus()?></td>
                        <td><?=$val->money?></td>
                        <td><?=$val->strTime()?></td>
                    </tr>
                    <?php endforeach; ?>
                    <tr>
                        <td>结余</td>
                        <td><?=$total?></td>
                        <td><?=date('Y-m-d')?></td>
                    </tr>
                </tbody>
            </table>
            <?php endif; ?>
        </div>
    </div>
</div>

<?=view('home.common.footer')?>
